package model

import "RMS/app/shop/model/base"

type OrderListReq struct {
	Id        *int    `form:"id"`
	StartTime *int    `form:"start_time"`
	EndTime   *int    `form:"end_time"`
	Type      *string `form:"type"`
	PageIndex *int    `form:"page_index"`
	PageSize  *int    `form:"page_size"`
}

type OrderListResp struct {
	Data  []map[string]interface{} `json:"data"`
	Total int                      `json:"total"`
	base.Resp
}

type AddOrderReq struct {
	Id int `json:"id,required"`
}

type AddOrderResp struct {
	base.Resp
}

type Order struct {
	Id         *int    `gorm:"id"`
	Detail     string  `gorm:"detail"`
	TotalPrice float64 `gorm:"total_price"`
}

type DeleteOrderReq struct {
	Id int `json:"id,required"`
}

type DeleteOrderResp struct {
	base.Resp
}
